Skip to content

Fix Atomic lock README example#117

Open
DragonFSKY wants to merge 1 commit into
sttc:masterfrom
DragonFSKY:fix-readme-atomic-lock-example
Open

Fix Atomic lock README example#117
DragonFSKY wants to merge 1 commit into
sttc:masterfrom
DragonFSKY:fix-readme-atomic-lock-example

Conversation

@DragonFSKY

Copy link
Copy Markdown

Fixes #113.

Summary

  • update the README lock example to pass the Callable into Atomic's constructor
  • call Atomic#call() with no arguments
  • fix the anonymous Callable<Void> method signature to return Void

Notes

This is intentionally README-only: the production API and tests already use the new Atomic<>(callable, lock) shape. I did not change the separate Atomic Javadoc example mentioned in #115.

Verification

  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

README Atomic lock example does not compile: missing Callable arg and wrong override signature

1 participant